package edu.hm.compiler.parser.derive;

import edu.hm.compiler.scanner.token.IToken;

public class ParserException extends Exception
{

    private IToken token;

    public ParserException( IToken token, String msg )
    {
        super( msg );
        this.token = token;
    }

    public ParserException( Throwable cause )
    {
        super( cause );
    }

    public IToken getToken()
    {
        return this.token;
    }
}
